package com.JZ.QM.common.dao;

import com.JZ.QM.common.entity.PositionDetailEntity;
import com.JZ.QM.common.entity.UserPositionDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/13 19:08
 */
@Mapper
public interface UserPositionDetailDao {
    /**
     * 获取组合中持有金额最多的五个人
     * @param comBaseId 原组合id
     * @return
     */
    ArrayList<UserPositionDetailEntity> getPositionTop5ForUser(@Param("comBaseId")Long comBaseId);

    /**
     * 获取用户的持仓收益信息
     * @param accountId 平台账号id
     * @return
     */
    UserPositionDetailEntity getUserPositionIncomeDetail(@Param("accountId")Long accountId);

}
